package cn.topcodes.tcsf.cms.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import java.util.Date;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 友情链接表单
 * @author Unicorn
 * @date 2017-12-25 21:34:53
 */
@Data
public class FriendlyLinkForm implements Idable {
	
	private Long id;

	@NotNull(message = "名称不能为空")
	@Length(min = 0,max = 50,message = "名称长度为0~50个字符")
	private String name;
	
	@Length(min = 0,max = 200,message = "描述长度为0~200个字符")
	private String description;
	
	@NotNull(message = "URL不能为空")
	@Length(min = 0,max = 1000,message = "URL长度为0~1000个字符")
	private String url;
	
	@Length(min = 0,max = 2000,message = "Logo长度为0~2000个字符")
	private String logoUrl;
	
	@NotNull(message = "排序不能为空")
	private Integer sort;
	

}